import alova from '@/utils/alova'

// 任务列表
export const taskList = (data) => {
  return alova.Post('/task/list', data)
}

// 模板下载
export const taskModDownload = (data) => {
  return alova.Post('/task/modDownload', data, {
    responseType: 'blob'
  })
}

// 保存
export const taskSave = (data) => {
  return alova.Post('/task/save', data)
}

// 文件下载
export const taskDownload = (data) => {
  return alova.Post('/task/download', data, {
    responseType: 'blob'
  })
}
